<?php

namespace App\Commands;

class AddRemoveVulnerabilityToFromFolder extends Command
{
    /** @var int */
    protected $folderId;

    /** @var int */
    protected $vulnerabilityId;

    /** @var bool */
    protected $remove;

    /**
     * AddVulnerabilityToFolder constructor.
     *
     * @param int $folderId
     * @param int $vulnerabilityId
     * @param bool $remove
     */
    public function __construct(int $folderId, int $vulnerabilityId, bool $remove = false)
    {
        $this->folderId        = $folderId;
        $this->vulnerabilityId = $vulnerabilityId;
        $this->remove          = $remove;
    }

    /**
     * @return int
     */
    public function getFolderId(): int
    {
        return $this->folderId;
    }

    /**
     * @return int
     */
    public function getVulnerabilityId(): int
    {
        return $this->vulnerabilityId;
    }

    /**
     * @return bool
     */
    public function isRemove(): bool
    {
        return $this->remove;
    }
}